package com.cms.testbutterknife

import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.cms.bind_annotation.BindClick
import com.cms.bind_annotation.BindView
import com.cms.bind_api.ButterKnife

class MainActivity2 : AppCompatActivity() {


    @BindView(R.id.btn)
    var button: Button? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)
        ButterKnife.bind(this)
        button?.text= "点击返回"
    }

    @BindClick(R.id.btn)
    fun back(){
        finish()
    }
}